import request from '@/utils/request'
import {projectApiUrl} from '../config'
/**
 * 劳务分包商列表
 * @param parameter
 */
export function getLaborSubcontractors(parameter){
  return request({
    url: projectApiUrl+'/ledeger/list/page',
    method: 'post',
    data: parameter
  })
}

/**
 * 查看劳务分包商详情
 * @param id
 */
export function getLaborSubcontractorOne(id){
  return request({
    url: '/subcontractors'+ id,
    method: 'get',
    id
  })
}

/**
 * 劳务分包商列表统计
 * @param
 */
  export function getLaborSubcontractorsTotal(data){
  return request({
    url: projectApiUrl+'/ledeger/listTotal/list',
    method: 'post',
    data
  })
}



/**
 * 编辑劳务分包商状态变更
 * @param data
 */
export function editLaborSubcontractors(data){
  return request({
    url: projectApiUrl+'/ledeger/editStatus',
    method: 'post',
    data: data
  })
}


/**
 * 劳务分包商列表统计
 * @param
 */
export function getStatusCodeData(data){
  return request({
    url: projectApiUrl+'/label',
    method: 'get',
    params:data
  })
}


/**
 * 同步云筑集采
 * @param
 */
export function synchronousDatas(data){
  return request({
    url: projectApiUrl+'/ledeger/yunZhu/subContractor/import',
    method: 'get',
    params:data
  })
}

/**
 * 导出分包商台账数据
 */
export function exportLaborData(params) {
  return request({
    url: projectApiUrl + '/ledeger/export-excel',
    method: 'get',
    params
  })
}